package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.ZhyCollect;
import com.ruoyi.system.mapper.ZhyCollectMapper;
import com.ruoyi.system.service.ZhyCollectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ZhyCollectServiceImpl implements ZhyCollectService {
    @Autowired
    private ZhyCollectMapper zhyCollectMapper;
    @Override
    public int addCollect(ZhyCollect zhyCollect) {
        return zhyCollectMapper.addCollect(zhyCollect);
    }

    @Override
    public int deleteCollect(ZhyCollect zhyCollect) {
        return zhyCollectMapper.deleteCollect(zhyCollect);
    }

    @Override
    public List<ZhyCollect> selectByuserid(ZhyCollect zhyCollect) {
        return zhyCollectMapper.selectByuserid(zhyCollect);
    }
    @Override
    public int deleteCollectById(ZhyCollect zhyCollect){
        return zhyCollectMapper.deleteCollectById(zhyCollect);
    }
    @Override
    public ZhyCollect selectByid(ZhyCollect zhyCollect) {
        return zhyCollectMapper.selectByid(zhyCollect);
    }
}
